<template>
	<headerView :noleftIcon="noleftIcon" :title="title">
		<view class="flex rightBox spaceAround" @click="navPreview" url="/pages/my/navPreview/navPreview">
			<image class="idcard" src="/static/images/group/idcard.png" mode="heightFix"></image>
			<view class="text">我的名片</view>
		</view>
	</headerView>
</template>

<script>
	export default {
		name: 'groupheader',
		props: {
			title: '',
			noleftIcon: {
				type: Boolean,
				default: false,
			},
		},
		data() {
			return {};
		},
		methods: {
			navPreview() {
				const { business_status } = uni.getStorageSync('loginData');

				uni.navigateTo({
					url: business_status == 0 ? '/pages/my/card/card' : '/pages/my/navPreview/navPreview',
				});
			},
		},
	};
</script>

<style lang="scss" scoped>
	.rightBox {
		height: 50rpx;
		flex-direction: column;
		width: auto;
		overflow: hidden;
		align-items: center;
		.idcard {
			width: 28.54rpx;
			height: 21.45rpx;
		}
		.text {
			font-size: 18rpx;
		}
	}
</style>
